﻿@model IEnumerable<ShenLanCMS.Models.UserInfo>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Name
        </th>
        <th>
            Sex
        </th>
        <th>
            Birthday
        </th>
        <th>
            Tel
        </th>
        <th>
            Mobile
        </th>
        <th>
            QQ
        </th>
        <th>
            Msn
        </th>
        <th>
            Photo
        </th>
        <th>
            Address
        </th>
        <th>
            Postcode
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Sex)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Birthday)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Mobile)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.QQ)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Msn)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Photo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Postcode)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.UserInfoID }) |
            @Html.ActionLink("Details", "Details", new { id=item.UserInfoID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.UserInfoID })
        </td>
    </tr>
}

</table>
